﻿using PmSoft.Entity;

namespace AppWebApi.Authorization;

/// <summary>
/// APP用户
/// </summary>
public class AppUserInfo : IUser
{
    /// <summary>
    /// 安全ID
    /// </summary>
    public int SecurityId { get; set; }
    /// <summary>
    /// 身份证号码
    /// </summary>
    public string IdCard { get; set; } = string.Empty;
    /// <summary>
    /// 登录过期时间
    /// </summary>
    public DateTime ExpireTime { get; set; }
    /// <summary>
    /// 工人ID
    /// </summary>
    public int ObjectId { get; set; }
    /// <summary>
    /// 用户类型
    /// </summary>
    public UserType Type { get; set; }

    int IUser.Id => ObjectId;

    string IUser.Name => IdCard;
}


